<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                        rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/onduty">首页</a>
                </li>
                <li>
                    <a href="#/star/onduty/resolvegroup_list">支持组列表</a>
                </li>
                <li class="active">支持组设置</li>
            </ul>
        </div>
    </div>
</div>

<div class="container-fluid">

    <div class="row">
        <div class="col-sm-12 col-md-12 main">
            <div class="col-md-6 col-md-offset-3">
                <h2 style="text-align: center">详情信息</h2>
                <form name="form" novalidate>
                    <div class="form-group">
                        <label style="padding: 0 0 5px">支持组编码(自动生成)</label>
                        <input readonly type="text" class="form-control" name="resolvegroupId" ng-model="vm.p.resolvegroupId"/>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.name.$error.required,'has-success':!form.name.$error.required}">
                        <label style="padding: 0 0 5px">名称（例如：离线任务值班）</label>
                        <input type="text" class="form-control" name="name" ng-model="vm.p.name" required />
                        <span ng-show="form.name.$error.required" class="help-block">请输入组名</span>
                    </div>
                    <div class="form-group">
                        <label style="padding: 0 0 5px">描述（例如：离线保障数据稳定和准确）</label>
                        <input type="text" class="form-control" name="description" ng-model="vm.p.description" />
                        <span ng-show="form.description.$error.required" class="help-block">描述!</span>
                    </div>
                    <div class="form-group"
                         ng-class="{'has-error':form.masters.$error.required,'has-success':!form.masters.$error.required}">
                        <label style="padding: 0 0 5px">负责人（例如：lixiyong01,fangpeiyun 第一个为负责人,其他为关注者）</label>
                        <input id="masters" type="text" class="form-control" name="masters" ng-model="vm.p.masters"
                               required />
                        <span ng-show="form.masters.$error.required" class="help-block">请填写负责人</span>
                    </div>

                    <!-- <div class="form-group">
                            <label style="padding: 0 0 5px">成员（例如：lixiyong01,shaodongyang）</label>
                            <input type="text" class="form-control" name="users" ng-model="vm.p.users"  />
                            <span ng-show="form.users.$error.required" class="help-block" >成员!</span>
                        </div> -->
                    <!--<div class="form-group"-->
                    <!--ng-class="{'has-error':form.monitorGroupKey.$error.required,'has-success':!form.monitorGroupKey.$error.required}">-->
                    <!--<label style="padding: 0 0 5px">关联告警组</label>-->
                    <!--<div class="input-group">-->
                    <!--<span class="input-group-addon">-->
                    <!--<input type="checkbox" aria-label="..." ng-model="relateMonitorGroup"-->
                    <!--ng-change="fnRmg()">-->
                    <!--</span>-->
                    <!--<input type="text" class="form-control" name="monitorGroupKey" aria-label="..."-->
                    <!--ng-disabled="!relateMonitorGroup" ng-model="vm.p.monitorGroupKey"-->
                    <!--ng-required="relateMonitorGroup" />-->
                    <!--</div>-->
                    <!--<span ng-show="form.monitorGroupKey.$error.required" class="help-block">请填写监控组key</span>-->
                    <!--</div>-->
                    <div class="form-group"
                        ng-class="{'has-error':form.isOnduty.$error.required,'has-success':!form.isOnduty.$error.required}">
                        <label for="isOnduty" style="padding: 0 0 5px">是否开启值班通知：</label>
                        <select class="form-control" id="isOnduty" ng-model="vm.p.isOnduty" ng-init="vm.p.isOnduty='0'">
                            <option value='1'>是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                    <div class="form-group"
                        ng-class="{'has-error':form.ondutyMode.$error.required,'has-success':!form.ondutyMode.$error.required}">
                        <label for="ondutyMode" style="padding: 0 0 5px">值班方式：</label>
                        <select class="form-control" id="ondutyMode" ng-model="vm.p.ondutyMode" ng-init="vm.p.ondutyMode='workday'">
                            <option value='everyday'>每天值班</option>
                            <option value="workday">工作日（周一到周五）</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label style="padding: 0 0 5px">换班时间（例如：09:00）</label>
                        <input type="text" class="form-control" name="rotationTime" ng-model="vm.p.rotationTime" />
                    </div>


                    <div class="form-group"
                        ng-class="{'has-error':form.users.$error.required,'has-success':!form.users.$error.required}"
                        ng-show="!relateMonitorGroup">
                        <label style="padding: 0 0 5px">值班成员（例如：lixiyong01,shaodongyang）
                            <a href="#/star/onduty/scheduler_list/{{vm.p.resolvegroupId}}" target="_blank"><u>值班安排</u></a>
                        </label>
                        <input id="users" type="text" class="form-control" data-role="tagsinput" name="users"
                            ng-model="vm.p.users" ng-required="!relateMonitorGroup" />
                        <span ng-show="form.users.$error.required" class="help-block">请填写成员oa号</span>
                    </div>




                    <div class="form-group" ng-class="{'has-error':form.action.$error.required,'has-success':!form.action.$error.required}">
                        <label style="padding: 0 0 5px">激活状态</label>
                        <select name="type" ng-model="vm.p.action" class="form-control" name="action" ng-init="vm.p.action='1'">
                            <option value="1">已激活</option>
                            <option value="2">未激活</option>
                        </select>
                        <span ng-show="form.status.$error.required" class="help-block">请选择激活状态!</span>
                    </div>

                    <div class="form-group">
                        <input class="btn btn-primary" ng-class="{'disabled':!form.$valid}" type="button" value="确定"
                            ng-click="form.$valid&&addResolvegroup()" />
                        <a href="#/star/onduty/resolvegroup_list" class="btn btn-default">返回</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--/.container-->